Component({
  data: {
    selected: 0,
    color: "#86898C",
    selectedColor: "#413D3A",
    list: [{
      pagePath: "/pages/index/index",
      iconPath: "../image/index.png",
      selectedIconPath: "../image/index_HL.png",
      text: "首页"
    }, {
      pagePath: "/pages/activity/activity",
      iconPath: "../image/activity.png",
      selectedIconPath: "../image/activity_HL.png",
      text: "活动"
    }, {
      pagePath: "/pages/circle/circle",
      iconPath: "../image/circle.png",
      bulge:true,
      selectedIconPath: "../image/circle_HL.png",
      text: "圈子"
    } ,{
        pagePath: "/pages/message/message",
        iconPath: "../image/message.png",
        selectedIconPath: "../image/message_HL.png",
        text: "消息"
      }, {
        pagePath: "/pages/mine/mine",
        iconPath: "../image/mine.png",
        selectedIconPath: "../image/mine_HL.png",
        text: "我的"
      }]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({url: url })
      this.setData({
        selected: data.index
      })
    }
  }
})